#!/usr/bin/env python
#
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""A few simple dictionaries the Wi-Fi monitoring script needs to reference."""

__author__ = "Joey Freeland (joeyfreeland@gmail.com)"

NETWORKS = {"GuestNetwork": {"auth": False},
            "AuthenticatedNetwork": {"auth": True,
                                     "wpa": ("WPA_KEY_HERE")
                         },
           }


SUBNET = {"255.255.255.255": "32",
          "255.255.255.254": "31",
          "255.255.255.252": "30",
          "255.255.255.248": "29",
          "255.255.255.240": "28",
          "255.255.255.224": "27",
          "255.255.255.192": "26",
          "255.255.255.128": "25",
          "255.255.255.0": "24",
          "255.255.254.0": "23",
          "255.255.252.0": "22",
          "255.255.248.0": "21",
          "255.255.240.0": "20",
          "255.255.224.0": "19",
          "255.255.192.0": "18",
          "255.255.128.0": "17",
          "255.255.0.0": "16",
         }

WIFI_CHANNEL_MAP = {"2.412": 1,
                    "2.417": 2,
                    "2.422": 3,
                    "2.427": 4,
                    "2.432": 5,
                    "2.437": 6,
                    "2.442": 7,
                    "2.447": 8,
                    "2.452": 9,
                    "2.457": 10,
                    "2.462": 11,
                    "2.467": 12,
                    "2.472": 13,
                    "2.484": 14,
                    "4.915": 183,
                    "4.920": 184,
                    "4.925": 185,
                    "4.935": 187,
                    "4.940": 188,
                    "4.945": 189,
                    "4.960": 192,
                    "4.980": 196,
                    "5.035": 7,
                    "5.040": 8,
                    "5.045": 9,
                    "5.055": 11,
                    "5.060": 12,
                    "5.080": 16,
                    "5.170": 34,
                    "5.180": 36,
                    "5.190": 38,
                    "5.200": 40,
                    "5.210": 42,
                    "5.220": 44,
                    "5.230": 46,
                    "5.240": 48,
                    "5.260": 52,
                    "5.280": 56,
                    "5.300": 60,
                    "5.320": 64,
                    "5.500": 100,
                    "5.520": 104,
                    "5.540": 108,
                    "5.560": 112,
                    "5.580": 116,
                    "5.600": 120,
                    "5.620": 124,
                    "5.640": 128,
                    "5.660": 132,
                    "5.680": 136,
                    "5.700": 140,
                    "5.745": 149,
                    "5.765": 153,
                    "5.785": 157,
                    "5.805": 161,
                    "5.825": 165,
                   }
